export default [
    {
        path: '/user',
        layout: false,
        routes: [
            { name: '登录', path: '/user/login', component: './user/Login' },
            { component: './404' },
        ],
    },

    // 后台管理
    {
        path: '/admin',
        name: '后台管理',
        icon: 'table',
        // access: 'authentication',
        routes: [
            {
                path: '/admin',
                redirect: '/admin/list',
            },
            {
                name: '管理员管理',
                icon: 'smile',
                path: '/admin/list',
                component: './admin/adminList',
                access: 'authentication',
            },
            {
                name: '角色管理',
                icon: 'smile',
                path: '/admin/role',
                component: './admin/auth/role',
                // access: 'authentication',
            },
            {
                name: '权限管理',
                icon: 'smile',
                path: '/admin/menu',
                component: './admin/auth/menu',
                // access: 'authentication',
            },
            {
                path: '/admin/file',
                name: '文件管理',
                icon: 'table',
                component: './admin/oss/file',
                // access: 'authentication',
            },
        ],
    },
    {
        path: '/map',
        name: '全景地图管理',
        icon: 'profile',
        routes: [
            {
                path: '/map',
                redirect: '/map/list',
            },
            {
                name: '地图列表',
                path: '/map/list',
                component: './map/list',
            },
            {
                name: '场景列表',
                path: '/map/panorama/list',
                component: './map/panorama',
            },
            {
                name: '信息点列表',
                path: '/map/infospot/list',
                component: './map/infospot',
            },
        ],
    },
    {
        path: '/upload',
        name: '文件上传',
        icon: 'profile',
        component: './uploadFile'
    },
    { component: './panorama', layout: false, path: '/mall/panorama', name: '全景地图展示', hideInMenu: true },
    { path: '/', redirect: '/welcome' },
    { component: './404' },
];
